<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%--
  Created by IntelliJ IDEA.
  User: 梁家源
  Date: 2021/4/2
  Time: 9:41
  To change this template use File | Settings | File Templates.
  ！！！本页面临时用于帮助展示相关操作，后期会删除！！！
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>Title</title>
    <link href="https://cdn.staticfile.org/twitter-bootstrap/3.3.7/css/bootstrap.min.css" rel="stylesheet">
</head>
<body>
<h2>管 理 员 操 作</h2>
<h3>
    <a href="${pageContext.request.contextPath}/queryAllCategory">类别管理</a>
    <a href="${pageContext.request.contextPath}/showAllOrder">我的订单</a>
</h3>

    <div class="container">
        <h4><small>管 理 员 登 录</small></h4>
        <form action="${pageContext.request.contextPath}/adminLogin" method="post">
            <div class="form-group">
                <label >I D</label>
                <input type="text" name="aid" class="form-control" required/>
            </div>
            <div class="form-group">
                <label >密 码</label>
                <input type="text" name="apassword" class="form-control" required/>
            </div>
            <div class="form-group">
                <input type="submit" class="form-control" value="登录" />
            </div>
        </form>

        <div class="row clearfix">
            <div class="col-md-12 column">
                <div class="page-header">
                    <h1>
                        <small>商品列表</small>
                    </h1>
                </div>
            </div>
        </div>

        <div class="row clearfix">
            <div class="col-md-12 column">
                <table class="table table-hover table-striped">
                    <tbody>
                    <c:forEach var="good" items="${Goodslist}">
                        <tr>
                            <th>${good.gname}</th>
                            <th>${good.gprice}</th>
                            <th>${good.gdetail}</th>
                        </tr>
                    </c:forEach>
                    </tbody>

                </table>
            </div>
        </div>


    </div>
</body>
</html>
